<template>
  <div class="pageloading">
    <div class="main">
      <div class="loading">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Pageloading',
  data() {
    return {}
  },

  computed: {},
  created() {},
  mounted() {},
  methods: {}
}
</script>

<style lang="less" scoped>
// .pageloading {
//   width: 100%;
//   height: 100%;
//   background-color: #000;
.main {
  width: 100%;
  height: auto;
}

a {
  display: block;
  text-align: center;
  font-size: 20px;
  margin-top: 200px;
}

.loading {
  width: 80px;
  height: 40px;
  margin: 0 auto;
  margin-top: 100px;
}

.loading span {
  display: inline-block;
  margin-left: 5px;
  width: 8px;
  height: 100%;
  border-radius: 4px;
  background: lightgreen;
  -webkit-animation: load 1s ease infinite;
  animation: load 1s ease infinite;
}

@keyframes load {
  0%,
  100% {
    height: 40px;
    background: lightgreen;
  }

  50% {
    height: 70px;
    margin: -15px 0;
    background: lightblue;
  }
}

.loading span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

.loading span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

.loading span:nth-child(4) {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}

.loading span:nth-child(5) {
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
}
// }
</style>
